package com.imooc.trading_system.controller;


import com.imooc.trading_system.service.RouterService;
import com.imooc.trading_system.utils.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Feng zhaoxi
 * @since 2022-05-01
 */
@RestController
@RequestMapping("/api/router")
public class RouterController {
    @Autowired
    private RouterService routerService;

    /**
     * 获取路由列表
     *
     * @return
     */
    @GetMapping("router_list")
    public JsonData routerList() {
        return routerService.getRouterList();
    }


}

